package com.software.fanfan.constant;

/**
 * Created by shiyanfei on 2018/1/9.
 */
public enum ResultEnum {

    SUCCESS(0,"success"),

    LOGIN_LOGINIDORPASSWORISNULL(1,"用户名或者密码不能为空"),

    LOGIN_NOUSER(2,"该用户不存在");

    private int code;

    private String message;

    ResultEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
